package com.haiyangwang1.lesson6;

public class NiMing implements MyInterface{
    public MyInterface play(){
        int msi=0;
    MyInterface i=new MyInterface() {
        @Override
        public void run() {
            System.out.println("跑"+msi);
        }

    };
        return i;
    }


    public static void main(String[] args) {
        NiMing n=new NiMing();
        MyInterface i=n.play();
        i.run();
    }


    @Override
    public void run() {

    }
}
